package test;

import java.util.HashMap;
import java.util.Map;

public class Params {
	//private boolean parsed = false;
	private Map<String,String> paramMap = new HashMap<String,String>();
	
	public Params (String[] args) {
		for (int i=0, l=args.length;i<l;i++) {paramMap.put(args[i].split("=")[0], args[i].split("=")[1]);}
	}
	
	protected String get(String p) {
		return (paramMap.containsKey(p))
				? 	paramMap.get(p)
				:	null;
	}
}
